<template>
  <div class="elm-edit pfull" style="overflow: hidden;">
    <elm-page-tb>
      <template #top>
        <el-date-picker v-model="postData.now_year" type="year" value-format="yyyy" placeholder="选择年份" size="mini" style="width: 250px;" clearable></el-date-picker>
        <right>
          <el-button-group>
            <el-button icon="el-icon-search" size="mini" @click="tablebinding()">查询</el-button>
          </el-button-group>
        </right>
      </template>
      <elm-table url="/business/analysis/cockpit/GetJsList" :post-data="postData" :show-index="true">
        <el-table-column prop="js_amount" label="结算金额(万元)" align="center" width="120"></el-table-column>
        <el-table-column prop="js_date" :formatter="formatDateTime" label="结算时间" width="180" align="center"></el-table-column>
        <el-table-column prop="order_id" label="所属订单" align="center"></el-table-column>
        <el-table-column prop="contract_id" label="所属合同" align="center"></el-table-column>
        <el-table-column prop="pj_id" label="所属项目" align="center"></el-table-column>
        <el-table-column prop="ei_name" label="跟进人" align="center" width="120"></el-table-column>
        <el-table-column prop="remark" label="备注" align="left" header-align="center"></el-table-column>
      </elm-table>
    </elm-page-tb>
  </div>
</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      postData: {
        now_year: elm.parseTime(new Date(), '{y}'),
        flag: elm.dialog.request.flag,  // all全部（收入统计-结算收入） ；part部分（合同订单-已结算）
      },
    }
  },
  created() {
  },
  mounted() {
  },
  methods: {
  
  }
}
</script>

<style scoped>
</style>